﻿CMAKE_MINIMUM_REQUIRED(VERSION 3.10)

# ============================================================================
# LieRen 游戏逻辑库列表（公共变量）
# ============================================================================
# 这些是游戏逻辑相关的库，大多数游戏插件都需要链接它们
# 使用公共变量可以避免重复定义，便于统一管理
# ============================================================================
set(LIREN_GAME_COMMON_LIBS
    NFMMOLogicMessage
    NFMMOLogicCommon
    NFMMOResStore
    NFGameCommon
    CACHE INTERNAL "LieRen 游戏逻辑库列表（公共变量）"
)

SET(SERVER_INCLUDE_DIR
        "${CMAKE_NFSHM_SOURCE_DIR}/game/LieRen/NFLogicComm"
        "${CMAKE_NFSHM_SOURCE_DIR}/game/LieRen/NFLogicComm/NFServerLogicMessage"
        "${CMAKE_NFSHM_SOURCE_DIR}/game/LieRen/NFLogicComm/ResStore"
        "${CMAKE_NFSHM_SOURCE_DIR}/game/LieRen/NFLogicComm/ResStore/DescStoreEx"
        "${CMAKE_NFSHM_SOURCE_DIR}/game/LieRen/NFLogicComm/ResStore/ResMetaS"
        "${CMAKE_NFSHM_SOURCE_DIR}/game/LieRen/NFServerLogic"
        "${CMAKE_NFSHM_SOURCE_DIR}/game/LieRen"
        "${CMAKE_NFSHM_SOURCE_DIR}/src/NFServerComm/NFServerMessage")

include_directories( ${INCLUDE_DIR} ${SERVER_INCLUDE_DIR})

ADD_SUBDIRECTORY("NFLogicComm")
ADD_SUBDIRECTORY("NFServerLogic")
ADD_SUBDIRECTORY("Robot")

if (CMAKE_BUILD_TYPE STREQUAL "Release")
    ADD_SUBDIRECTORY("NFLieRenStatic")
elseif (CMAKE_BUILD_TYPE STREQUAL "Debug")
    ADD_SUBDIRECTORY("NFLieRenStatic")
elseif (CMAKE_BUILD_TYPE STREQUAL "DynamicRelease")

elseif (CMAKE_BUILD_TYPE STREQUAL "DynamicDebug")

endif ()





